/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved.
 */
package com.icinfo.cloud.provider.punish.ucase.app.controller;

import com.icinfo.cloud.common.core.Validator.BaseGroup;
import com.icinfo.cloud.provider.punish.ucase.punishinform.dto.AppInformInvestigationEndFormDto;
import com.icinfo.cloud.provider.punish.ucase.punishinform.dto.InvestigationEndRequest;
import com.icinfo.cloud.provider.punish.ucase.punishinform.service.IInformInvestigationEndService;
import com.icinfo.cloud.provider.punish.ucase.punishinform.vo.InformInvestigationEndFormVo;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 【V1.3.1】描述:  调查终结对应的Controller类.<br>
 *
 * @author framework generator
 * @date 2022年02月13日
 */
@RestController
@RequestMapping("/appInvestigationEnd")
public class AppInformInvestigationEndController extends BaseController {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(AppInformInvestigationEndController.class);

    @Autowired
    private IInformInvestigationEndService iInformInvestigationEndService;

    /**
     * 获取移动端调查取证
     */
    @PostMapping(value = "/getInformInvestigationEndFormBaseinfo")
    public Result<InformInvestigationEndFormVo> getInformInvestigationEndFormBaseinfo(@RequestBody @Validated(BaseGroup.Query.class) InvestigationEndRequest request) {
        return iInformInvestigationEndService.getInformInvestigationEndFormBaseinfo(request);
    }

    /**
     * 移动端调查取证.
     *
     * @param informInvestigationEndFormDto
     * @return
     */
    @PostMapping(value = "/saveInformInvestigationEndForm")
    public Result<String> saveInformInvestigationEndForm(@RequestBody @Validated(BaseGroup.Query.class) AppInformInvestigationEndFormDto informInvestigationEndFormDto) {
        return iInformInvestigationEndService.saveInformInvestigationEndFormApp(informInvestigationEndFormDto);
    }


}